home *** CD-ROM | disk | FTP | other *** search
- instanceof class person;
-
- assume string name; integer age in
- {
-
- person := class.new(
- "person",
- [
- {
- null function hello2()
- {
- assume null function hello(string s) in
- {
- let string s := "Guy";
- hello(s);
- };
- };
- },
-
- {
- null function hello(string s)
- {
- write("Hello ",s,"\n");
- };
- },
-
- {
- null function set(string namep; integer agep)
- {
- name := namep;
- age := agep;
- };
- },
-
- {
- null function show()
- {
- write(name," is ",age," years old.\n");
- };
- }
-
- ],
- [{
- integer age;
- string name;
- }]
- );
- };
-
-